﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace KwaiXiaoDian.OpenApi.Controllers
{
    /// <summary>
    /// 测试
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    [ApiExplorerSettings(IgnoreApi = true)]
    public class TestController : ControllerBase
    {
        public TestController()
        {

        }

        [Route("test")]
        [HttpGet]
        [HttpPost]
        public IActionResult Test()
        {
            //var ipAddress = HttpContext.Connection.RemoteIpAddress?.ToString();
            return Ok("KwaiXiaoDian Api站点OK！");
        }

        [Route("test2")]
        [HttpGet]
        [HttpPost]
        public IActionResult Test2()
        {
            return Ok("KwaiXiaoDian Api 222站点OK！");
        }

    }
}
